package rulebase;

import java.util.ArrayList;

public class TreeComponent 
{
	private String componentName;
	private ArrayList<String> fList;
	private int tag;
	private boolean isOptional = false;
	private boolean isNotPresent = false;
	private boolean isObligatory =  false;
	
	public TreeComponent(String s)
	{
		componentName = s;
	}
	
	public String toString()
	{
		return componentName;
	}
	
	public String getComponentName() 
	{
		return componentName;
	}
	
	public void setComponentName(String componentName) 
	{
		this.componentName = componentName;
	}
	
	public ArrayList<String> getfList() 
	{
		return fList;
	}
	
	public void setfList(ArrayList<String> fList) 
	{
		this.fList = fList;
	}
	
	public int getTag() 
	{
		return tag;
	}
	
	public void setTag(int tag) 
	{
		this.tag = tag;
	}
	
	public boolean isOptional() 
	{
		return isOptional;
	}
	
	public void setOptional(boolean isOptional) 
	{
		this.isOptional = isOptional;
	}
	
	public boolean isNotPresent() 
	{
		return isNotPresent;
	}
	
	public void setNotPresent(boolean isNotPresent) 
	{
		this.isNotPresent = isNotPresent;
	}
	
	public boolean isObligatory() 
	{
		return isObligatory;
	}
	
	public void setObligatory(boolean isObligatory) 
	{
		this.isObligatory = isObligatory;
	}
}
